import request from '@/utils/request'

const userApi = {
  getxtractionrules: 'frontend/society_rule/rules',
  getexperttype: 'frontend/society_rule/exit_types',
  extractunit: 'frontend/society_rule/extract_custom_unit',
  extract: 'frontend/argument_experts/extract',
  preExtract: 'frontend/argument_experts/pre_extract',
  operateextract: 'frontend/argument_experts/operate_extract_experts',
  getauditmess: 'frontend/argument_experts/get_extract_result',
  gethandmess: 'frontend/argument_experts/get_hand_extract_list',
  manualsearch: 'frontend/argument_experts/search',
  create_code: 'frontend/extract_password/create',
  use_password: 'frontend/extract_password/use_password',
  changexpert: 'frontend/Argument/changestatus'
}

export function preExtract (parameter) {
  return request({
    url: userApi.preExtract,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function getxtractionrules (parameter) {
  return request({
    url: userApi.getxtractionrules,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function getexperttype (parameter) {
  return request({
    url: userApi.getexperttype,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function extractunit (parameter) {
  return request({
    url: userApi.extractunit,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function extract (parameter) {
  return request({
    url: userApi.extract,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function operateextract (parameter) {
  return request({
    url: userApi.operateextract,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function getauditmess (parameter) {
  return request({
    url: userApi.getauditmess,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function gethandmess (parameter) {
  return request({
    url: userApi.gethandmess,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function manualsearch (parameter) {
  return request({
    url: userApi.manualsearch,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function createCode (parameter) {
  return request({
    url: userApi.create_code,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function usePassword (parameter) {
  return request({
    url: userApi.use_password,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function changexpert (parameter) {
  return request({
    url: userApi.changexpert,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
